package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhx
 * @since 2025-01-17
 */
@TableName("messages_user_1")
public class MessagesUser1 implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息ID
     */
    @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;

    /**
     * 对话ID
     */
    @TableField("conversation_id")
    private Integer conversationId;

    /**
     * 消息发送者类型
     */
    @TableField("sender_type")
    private String senderType;

    /**
     * 消息内容
     */
    @TableField("content")
    private String content;

    /**
     * 消息发送时间
     */
    @TableField("send_time")
    private LocalDateTime sendTime;

    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }
    public Integer getConversationId() {
        return conversationId;
    }

    public void setConversationId(Integer conversationId) {
        this.conversationId = conversationId;
    }
    public String getSenderType() {
        return senderType;
    }

    public void setSenderType(String senderType) {
        this.senderType = senderType;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        return "MessagesUser1{" +
            "messageId=" + messageId +
            ", conversationId=" + conversationId +
            ", senderType=" + senderType +
            ", content=" + content +
            ", sendTime=" + sendTime +
        "}";
    }
}
